/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.com.impl;

import e.z.blog.back.com.ComFixNutzStringBugApi;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.nutz.ioc.loader.annotation.IocBean;
import z.h.w.jar.kit.Text;

/**
 *
 * @author EnzoZhong
 */
@IocBean( singleton = false )
public class ComFixNutzStringBug implements ComFixNutzStringBugApi {

        @Override
        public Map<String , String> fixString ( Map<String , String> map ) {
                Map<String , String> translate = new HashMap();
                Set<String> keySet = map.keySet();
                for ( String str : keySet ) {
                        translate.put( Text.toStr( str ) , Text.toStr( map.get( str ) ) );
                }
                return translate;
        }
}
